package org.accp.pojo;

public class Stock {
    private Integer stid;
    private String stname;
    private String sttime;
    private String stall;
    private String supplier;
    private String stmoney;
    private String stis;
    private String ctime;
    private String cfre;
    private String cpery;
    private String cpi;

    public void setStid(int stid) {
        this.stid = stid;
    }

    public Integer getStid() {
        return stid;
    }

    public void setStid(Integer stid) {
        this.stid = stid;
    }

    public String getStname() {
        return stname;
    }

    public void setStname(String stname) {
        this.stname = stname;
    }

    public String getSttime() {
        return sttime;
    }

    public void setSttime(String sttime) {
        this.sttime = sttime;
    }

    public String getStall() {
        return stall;
    }

    public void setStall(String stall) {
        this.stall = stall;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getStmoney() {
        return stmoney;
    }

    public void setStmoney(String stmoney) {
        this.stmoney = stmoney;
    }

    public String getStis() {
        return stis;
    }

    public void setStis(String stis) {
        this.stis = stis;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Stock stock = (Stock) o;

        if (stid != stock.stid) return false;
        if (stname != null ? !stname.equals(stock.stname) : stock.stname != null) return false;
        if (sttime != null ? !sttime.equals(stock.sttime) : stock.sttime != null) return false;
        if (stall != null ? !stall.equals(stock.stall) : stock.stall != null) return false;
        if (supplier != null ? !supplier.equals(stock.supplier) : stock.supplier != null) return false;
        if (stmoney != null ? !stmoney.equals(stock.stmoney) : stock.stmoney != null) return false;
        if (stis != null ? !stis.equals(stock.stis) : stock.stis != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = stid;
        result = 31 * result + (stname != null ? stname.hashCode() : 0);
        result = 31 * result + (sttime != null ? sttime.hashCode() : 0);
        result = 31 * result + (stall != null ? stall.hashCode() : 0);
        result = 31 * result + (supplier != null ? supplier.hashCode() : 0);
        result = 31 * result + (stmoney != null ? stmoney.hashCode() : 0);
        result = 31 * result + (stis != null ? stis.hashCode() : 0);
        return result;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getCfre() {
        return cfre;
    }

    public void setCfre(String cfre) {
        this.cfre = cfre;
    }

    public String getCpery() {
        return cpery;
    }

    public void setCpery(String cpery) {
        this.cpery = cpery;
    }

    public String getCpi() {
        return cpi;
    }

    public void setCpi(String cpi) {
        this.cpi = cpi;
    }
}
